<!DOCTYPE html>
<html class="x-admin-sm">
{include file='public/header'}
<script src="/admin/xadmin/lib/layui/upload.js" charset="utf-8"></script>

<body>
    <div class="x-body">
        <form class="layui-form" lay-filter="formAjax">
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>订单号
                </label>
                <div class="layui-input-block">
                    <input type="text" name="order_no" id="order_no" placeholder="订单号" disabled required="required"
                        lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>退款金额
                </label>
                <div class="layui-input-block">
                    <input type="text" name="return_money" id="return_money" placeholder="退款金额" required="required"
                        lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>退款原因
                </label>
                <div class="layui-input-block">
                    <textarea type="text" name="refund_reason" id="refund_reason" placeholder="退款原因" required="required"
                        lay-verify="required" autocomplete="off" class="layui-textarea" value=""></textarea>
                </div>
            </div>

            <button id="submitData" class="layui-btn" lay-submit lay-filter="submitData" style="display: none;" />
        </form>
    </div>
    <script>
        let order_no = GetQueryString('order_no')
        $('#order_no').val(GetQueryString('order_no'));
        let return_money = $('#return_money').val();
        let refund_reason = $('#refund_reason').val();
        let params = {
            addUrl: '/admin/proposal/refund?order_no='+order_no+'&return_money='+return_money+'&refund_reason='+refund_reason,
            confirm:true
        }
        form_ajax(params)

    </script>
</body>

</html>